package com.tjetc._2function;

import java.util.function.Consumer;

public class _2Consumer {
    public static void main(String[] args) {
        testConsumer(integer -> System.out.println(integer + 1), 2);
    }

    public static void testConsumer(Consumer<Integer> consumer, int a) {
        consumer.accept(a);
    }
}
